<template>
    <div id="center">
            <div class="center4">
                <h2>在现场</h2>
                <div class="c4div1">
                    <div class="c4div-con">
                        <div class="c4divcon" v-for="list in lists" :key="list.id">
                            <div class="c4condiv"><img :src="list.imgb" alt=""></div>
                            <li class="c4conli1">{{list.content}}</li>
                            <li class="c4conli2"><div><img :src="list.img" alt=""></div> {{list.named}}
                            </li>
                        </div>
                        <div class="c4divcon" v-for="list in lists" :key="list.id">
                            <div class="c4condiv"><img :src="list.imgb" alt=""></div>
                            <li class="c4conli1">{{list.content}}</li>
                            <li class="c4conli2"><div><img :src="list.img" alt=""></div> {{list.named}}
                            </li>
                        </div>
                        <div class="c4divcon" v-for="list in lists" :key="list.id">
                            <div class="c4condiv"><img :src="list.imgb" alt=""></div>
                            <li class="c4conli1">{{list.content}}</li>
                            <li class="c4conli2"><div><img :src="list.img" alt=""></div> {{list.named}}
                            </li>
                        </div>
                        <div class="c4divcon" v-for="list in lists" :key="list.id">
                            <div class="c4condiv"><img :src="list.imgb" alt=""></div>
                            <li class="c4conli1">{{list.content}}</li>
                            <li class="c4conli2"><div><img :src="list.img" alt=""></div> {{list.named}}
                            </li>
                        </div>
                        <div class="c4divcon" v-for="list in lists" :key="list.id">
                            <div class="c4condiv"><img :src="list.imgb" alt=""></div>
                            <li class="c4conli1">{{list.content}}</li>
                            <li class="c4conli2"><div><img :src="list.img" alt=""></div> {{list.named}}
                            </li>
                        </div>
                    </div>
                </div>
            </div>
        </div>
</template>

<script>
import axios from "axios";
export default {
  name: "Scene",
  data(){
    return{
      lists:[],
      num:""
    }
  },
  created() {
    this.num= Number(this.$route.params.id) || Number(this.$route.query.num);
    axios({
      url: "/goods",
      method: "get",
      params: {
        id: this.num,
      }
    }).then(res => {
      this.lists = res.data;
      // console.log(res.data)
      // console.log(this.num)
    });
  }
};
</script>

<style scoped>
#center {
  height: 3rem;
  width: 3.27rem;
  overflow-x: auto;
  margin: 0 auto;
  /* font-size: 0.19rem; */
}
#center {
  flex: 1;
  overflow-y: auto;
}
#center .center4 {
  width: 100%;
  height: 2.55rem;
  box-sizing: border-box;
}
#center .center4 h2 {
  height: 0.47rem;
  font-size: 0.15rem;
  box-sizing: border-box;
  padding-top: 0.1rem;
}
#center .center4 .c4div1 {
  width: 100%;
  height: 2rem;
  overflow-x: auto;
}
#center .center4 .c4div-con {
  width: 150%;
  height: 1.8rem;
  display: flex;
  justify-content: space-between;
}
#center .center4 .c4divcon {
  width: 0.9rem;
  height: 1.88rem;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  margin-top: 0.05rem;
}
#center .center4 .c4condiv {
  width: 100%;
  height: 1.2rem;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 0.1rem;
  overflow: hidden;
  /* background: url(./../img/jie1.gif) no-repeat center; */
  background-size: contain;
}
#center .center4 .c4condiv img {
  width: 100%;
  height: 100%;
}
#center .center4 .c4conli1 {
  height: 0.15rem;
  line-height: 0.15rem;
  font-size: 0.0875rem;
  overflow: hidden;
}
#center .center4 .c4conli2 {
  width: 100%;
  display: flex;
  font-size: 0.065rem;
  color: #9c9ca4;
  line-height: 0.18rem
}
#center .center4 .c4conli2 div{
  height: 0.18rem;
  width: 0.18rem;
  overflow: hidden;
   float: left;
   margin-right: 0.05rem;
   border-radius: 50%
}
#center .center4 .c4conli2 img {
  width: 100%;
}
</style>
